package com.example.headfirstprojectdemo.Decorator;

/**
 * 咖啡
 */
public class StarbuzzCoffee {
    public static void main(String[] args) {
        /**
         * 定一杯浓缩咖啡 不需要调料得价格
         */
        Beverage beverage = new Espresso();

        System.out.println(beverage.getDescription() + " $ " + beverage.cost()) ;

        Beverage beverage1 = new HouseBlend();
        beverage1 = new Soy(beverage1);
        beverage1 =  new Mocha(beverage1);
        beverage1 = new Whip(beverage1);
        System.out.println(beverage1.getDescription() + " $ " + beverage1.cost());

    }
}
